
#include "../common.h"

int main(int argc, char** argv)
{
	char buf[128];
	FILE *fp;
	if (NULL == (fp = fopen(argv[1], "r")))
	{
		printf("fopen failed");
		return -1;
	}
	

	while(NULL != fgets(buf, 128, fp))
	{
		printf("fgets=[%s]\n", buf);
	}

	printf("fgets=[%s]\n", buf);

	return 0;
}
